/**
 * Created by Administrator on 2017-04-07.
 */
// import _ from 'lodash'
const setIp = 'setIp'
const setHasLogin = 'setHasLogin'
const setRoleId = 'setRoleId'
const setUserName = 'setUserName'

const setTokens = 'setTokens'
const setTimestamp = 'setTimestamp'
const setSignature = 'setSignature'
const setBuyStaffInfo = 'setBuyStaffInfo'
const setUserInfo = 'setUserInfo'

const setMsg = 'setMsg'
const setRet = 'setRet'
const setShowMsg = 'setShowMsg'

const setCurrentPage = 'setCurrentPage'
const setIsImplant = 'setIsImplant'
const setServiceMenu = 'setServiceMenu'
const setLoginParams = 'setLoginParams'
const setTheme = 'setTheme'
const setOssUrl = 'setOssUrl'

export default {
    [setOssUrl] (state, payload) {
        state.ossUrl = payload
    },
    [setIp] (state, payload) {
        state.ip = payload
    },
    [setTheme] (state, payload) {
        state.theme = payload
    },
    [setLoginParams] (state, payload) {
        state.loginParams = payload
    },
    [setHasLogin] (state, payload) {
        state.hasLogin = payload
    },
    [setRoleId] (state, payload) {
        state.roleId = payload
    },
    [setUserName] (state, payload) {
        state.userName = payload
    },

    [setTokens] (state, payload) {
        state.tokens = payload
    },
    [setTimestamp] (state, payload) {
        state.timestamp = payload
    },
    [setSignature] (state, payload) {
        state.signature = payload
    },
    [setBuyStaffInfo] (state, payload) {
        state.buyStaffInfo = payload
    },
    [setUserInfo] (state, payload) {
        state.userInfo = payload
    },

    [setMsg] (state, payload) {
        state.msg = payload
        state.tipShow = !state.tipShow
    },
    [setRet] (state, payload) {
        state.ret = payload
    },
    [setShowMsg] (state, payload) {
        state.showMsg = payload
    },
    [setCurrentPage] (state, payload) {
        state.currentPage = payload
    },
    [setIsImplant] (state, payload) {
        state.isImplant = payload
    },
    [setServiceMenu] (state, payload) {
        state.serviceMenu = payload
    }
}
